約 2,907,856 件
https://w.atwiki.jp/sekaiju_name/pages/16.html
キャラクタ等の命名に困ったら見るリンク集 名づけの参考になるサイトへのリンクです。 命名に困ったら、以下を活用し気に入る名前を探しましょう。 [注 ゲームによって文字制限が異なります。(特に新旧版)] ランダムネームジェネレータ それっぽい名前ジェネレータ さらに怪しい人名辞典 欧羅巴人名録 人名辞典 歴史上の人物.com 悪魔事典 神話天使・悪魔の辞典 幻想神話辞典 風臥(神話等の武具辞典) 星座図鑑 北欧の古い言葉 アイヌ語にみる自然 色彩図鑑 花の名前小辞典 農作物辞典 百菓辞典 クラシック音楽用語集 宝石大辞典 タイトルがひらがな4文字の漫画・アニメ・ゲーム・ライトノベル ランダム名前決定チャート 名付け親 What's in a name? 名づけの種になりそうなもの詰め合わせ BABEL ~世界の言葉~ 創作支援名前倉庫
https://w.atwiki.jp/kiminori_hirose/pages/16.html
Rails 1.2.3 のメモ 作成手順 プロジェクトの作成 projectプロジェクトを作成する。 $ rails project データベースの設定 config/database.ymlをMySQL用に編集する。(testとproductionもdevelopmentと同様に変更しておく。) development adapter mysql database project_development username {MySQLのユーザ名} password {パスワード} socket /var/lib/mysql/mysql.sock #ソケットのとき host localhost #TCP/IPのときのMySQLのホスト名 port 3306 #TCP/IPのときのMySQLのポート番号。指定してないときは、3306になる encoding utf8 #文字化け防止のためデータベースの文字コードを設定する。 文字コード(UTF-8)の指定 app/controllers/application.brにHTTPレスポンスで返すContent-Typeを追加する。 class ApplicationController ActionController Base after_filter set_charset protected def set_charset headers["Content-Type"] = text/html; charset=UTF-8 end end config/environment.rbにRailsの内部文字コードを追加する。 $KCODE = UTF8 Tips Railsの規約にあわない名前を持つテーブルのためにset_table_name を使う config/environment.rbファイルを編集 ActiveRecord Base.pluralize_table_names = false app/controllers/entity.rbを編集 class Entity ActiveRecord Base set_table_name "entity" end 主キーがidではないテーブルのためにset_primary_keyを使う app/controllers/entity.rbを編集 class Entity ActiveRecord Base set_primary_key "entity_id" end ActiveRecordで外部キーを指定する class Person ActiveRecord Base belongs_to company validates_associated campany end 独自の単数形と複数形を定義する config/environment.rbを編集 Inflector.inflections do |inflect| inflect.irregular leaf , leaves end セッションの有効期限を設定する プロジェクト全体で設定するには、config/environment.rbを編集 ActionController Base.session_options[ session_expires] = 15.minutes.from_now 特定のコントローラで設定するには、各コントローラを編集 class PersonController Application session session_expires = 10.minutes.from_now end HTMLエスケープとURIエンコード HTMLエスケープ a href=" %=h http //localhost/q=東京 -% " LINK /a URIエンコード a href=" %=u http //localhost/q=東京 -% " LINK /a
https://w.atwiki.jp/railwaywiki/pages/26.html
ここではRailSImのデーターを公開しています。 ご観覧されている方もデータ(車両・施設・駅舎・架線柱・レイアウトなど)を投稿しても構いません ↓からダウンロードしてください
https://w.atwiki.jp/kurails/pages/2.html
メニュー Rails1.2 Rails3+ CIPS 外部リンク トップページ プラグイン紹介 まとめサイト作成支援ツール メニュー メニュー2 リンク @wiki @wikiご利用ガイド 他のサービス 無料ホームページ作成 無料ブログ作成 2ch型掲示板レンタル 無料掲示板レンタル お絵かきレンタル 無料ソーシャルプロフ ここを編集
https://w.atwiki.jp/tetuyo/pages/15.html
RailSim広場 ここではRailSimのことについていろいろと載せていきます。 RailSim は仮想空間上に自由自在に鉄道網を構築できる、3D 鉄道シミュレータです。 RailSim 最大の特徴は、プラグインにより車輌や建物等のデータを追加できる点で、 プラグインの製作こそが RailSim の最大の楽しみでもあります。 さらに、インターネットや LAN 等のネットワーク接続を通じて複数のユーザーが同時にシミュレーションを楽しむことも可能だそうです。 公式ホームページ RailSimはこちらの公式ホームページにてダウンロードすることができます。 もちろんフリーソフトです。 メニュー プラグイン制作日記 ここではRailSimのレイアウトやプラグインの制作日記を載せていきます RailSimプラグイン ここではRailSimのプラグインを載せていきます スクリーンショット ここではRailSimのスクリーンショットを載せていきます 名前 コメント
https://w.atwiki.jp/vvvf/pages/11.html
RailSimのプラグインを公開する場所です。
https://w.atwiki.jp/ohden/pages/286.html
RubyOnRails install ◆環境 Ubuntu 10.04 Ruby 1.8.7 RubyGems 1.3.7 ◆install ※注:現時点で以下のコマンドを打つとrails3.0.1が入るみたいです。2系を入れたい人は下の方まで読み進めて実行して下さい。 sudo gem install rails --include-dependencies INFO `gem install -y` is now default and will be removedINFO use --ignore-dependencies to install only the gems you listSuccessfully installed activesupport-3.0.1Successfully installed builder-2.1.2Successfully installed i18n-0.4.2Successfully installed activemodel-3.0.1Successfully installed rack-1.2.1Successfully installed rack-test-0.5.6Successfully installed rack-mount-0.6.13Successfully installed tzinfo-0.3.23Successfully installed abstract-1.0.0Successfully installed erubis-2.6.6Successfully installed actionpack-3.0.1Successfully installed arel-1.0.1Successfully installed activerecord-3.0.1Successfully installed activeresource-3.0.1Successfully installed mime-types-1.16Successfully installed polyglot-0.3.1Successfully installed treetop-1.4.8Successfully installed mail-2.2.9Successfully installed actionmailer-3.0.1Successfully installed rake-0.8.7Successfully installed thor-0.14.3Successfully installed railties-3.0.1Successfully installed bundler-1.0.3Successfully installed rails-3.0.124 gems installedInstalling ri documentation for activesupport-3.0.1...Installing ri documentation for builder-2.1.2...ERROR While generating documentation for builder-2.1.2... MESSAGE Unhandled special Special type=17, text=" !-- HI -- "... RDOC args --ri --op /usr/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation(continuing with the rest of the installation)Installing ri documentation for i18n-0.4.2...Installing ri documentation for activemodel-3.0.1...Installing ri documentation for rack-1.2.1...Installing ri documentation for rack-test-0.5.6...Installing ri documentation for rack-mount-0.6.13...Installing ri documentation for tzinfo-0.3.23...Installing ri documentation for abstract-1.0.0...Installing ri documentation for erubis-2.6.6...Installing ri documentation for actionpack-3.0.1...Installing ri documentation for arel-1.0.1...Installing ri documentation for activerecord-3.0.1...Installing ri documentation for activeresource-3.0.1...Installing ri documentation for mime-types-1.16...Installing ri documentation for polyglot-0.3.1...Installing ri documentation for treetop-1.4.8...Installing ri documentation for mail-2.2.9...Installing ri documentation for actionmailer-3.0.1...Installing ri documentation for rake-0.8.7...Installing ri documentation for thor-0.14.3...Installing ri documentation for railties-3.0.1...Installing ri documentation for bundler-1.0.3...Installing ri documentation for rails-3.0.1...File not found lib 順調に入ってると思ったら...止まった。(;´д`) Error自体はドキュメントの入れ損ねっぽぃが... log見てると...なんかRails3の文字が... rails -v Rails 3.0.1 Σ(´Д`;) Rails3が入りやがった...もうgemで取ってくると3が入るのね...orz 今回は2系を入れたいので、仕方がないのでやり直し。(´・ω・`) って sudo gem uninstall rails したら...依存関係含めてuninstallしてくれる訳じゃないんだね...。・゜・(ノД`)・゜・。 今回はまっ更な状態から入れたけぇえぇんじゃが... ある程度環境がある状態から入れとったらどんなことになったか分かりませんね... なんか良い方法あるんかな? gem list sudo gem uninstall abstract actionmailer actionpack …以下listで出た物全部の羅列 とりあえず、gem入れたトコまで戻しました。(ノ∀`) で、今度はVer指定して実行。コレで2系の最新版が入るハズ。 sudo gem install rails --version " 3.0.0" --include-dependencies もしかして、rails入れる時に『gem1.3.6以上じゃねぇとダメ!!』とか言われとったのって...Rails3のせいなんじゃろうか...(;´д`) 最初からVer指定しとったらあっさり入ったんじゃろうか...orz ⇒ その通りでした。apt-getでgem1.3.5が入った状態で上記コマンド実行することでrails2.3.10が無事入りました。 ただ、apt-getで入れたgemだと色々おかしな事が多くて結局手動で入れ直しましたけど... INFO `gem install -y` is now default and will be removedINFO use --ignore-dependencies to install only the gems you listSuccessfully installed rake-0.8.7Successfully installed activesupport-2.3.10Successfully installed activerecord-2.3.10Successfully installed rack-1.1.0Successfully installed actionpack-2.3.10Successfully installed actionmailer-2.3.10Successfully installed activeresource-2.3.10Successfully installed rails-2.3.108 gems installedInstalling ri documentation for rake-0.8.7...Installing ri documentation for activesupport-2.3.10...Installing ri documentation for activerecord-2.3.10...Installing ri documentation for rack-1.1.0...Installing ri documentation for actionpack-2.3.10...Installing ri documentation for actionmailer-2.3.10...Installing ri documentation for activeresource-2.3.10...Installing ri documentation for rails-2.3.10...Installing RDoc documentation for rake-0.8.7...Installing RDoc documentation for activesupport-2.3.10...Installing RDoc documentation for activerecord-2.3.10...Installing RDoc documentation for rack-1.1.0...Installing RDoc documentation for actionpack-2.3.10...Installing RDoc documentation for actionmailer-2.3.10...Installing RDoc documentation for activeresource-2.3.10...Installing RDoc documentation for rails-2.3.10... 今度はドキュメント含めて問題無く入ったみたいですね。(*^ω^) あとは、railsとDB接続のためにsqlite3-rubyってのが要るらしい。 sudo gem install sqlite3-ruby Building native extensions. This could take a while...Successfully installed sqlite3-ruby-1.3.21 gem installedInstalling ri documentation for sqlite3-ruby-1.3.2...No definition for libversionEnclosing class/module mSqlite3 for class Statement not knownInstalling RDoc documentation for sqlite3-ruby-1.3.2...No definition for libversionEnclosing class/module mSqlite3 for class Statement not known もし、sqlite3-rubyのinstallで失敗したら、 sudo apt-get install ruby-dev か sudo apt-get install ruby-full を実行後、再度gem installをやってみると上手く行くかもしれません。 で、これでRailsが動く環境になった。 rails -v Rails 2.3.10 が、何かやっとる内に失敗するパターンがあった... rails -v The program rails is currently not installed. You can install it by typing sudo apt-get install rails って...『/var/lib/gems/1.8/bin』見てみたらちゃんとrails入っとるみたいなんじゃが... カレントdir移動して cd /var/lib/gems/1.8/bin ./rails -v Rails 2.3.10 間違いなく入ってるのに、シンボリックリンクだけ作られて無いって話!?謎だ...シンボリックリンクだけ作りゃえぇんかな?つか、こんな事RubyGems入れよる時にもあったな... Ruby関係じゃとコレ普通なんかな? cd /usr/bin sudo ln -s /var/lib/gems/1.8/bin/rails rails で rails -v Rails 2.3.10 う~ん...表示されたが...えぇんじゃろうか? 更新日: 2017年04月14日 (金) 09時04分17秒 名前 コメント すべてのコメントを見る
https://w.atwiki.jp/nikapoka/pages/13.html
Ruby on Railsのプラグインの情報 ログイン(ユーザ管理)プラグイン まとめサイト http //www13.atwiki.jp/maimuzo/pages/43.html#id_90d72bbe restful-authenticationを入れてみる windows環境の場合、gitをインストールする必要がある。 http //d.hatena.ne.jp/kusakari/20080715/1216091060 を参考にインストールする。 restful-authenticationのインストールの説明 http //blog.imishin.com/2008/09/14/rails-with-restful-authentication-on/ http //d.hatena.ne.jp/kusakari/20080825/1219667742
https://w.atwiki.jp/ayikat/pages/73.html
※gradle http //www.ntts.co.jp/publish/column/tec/java_03/ site http //www.slideshare.net/uehaj/jjug-ccc-groovy2x20130511 http //grails.jp/news/2013-17.html http //grails.org/doc/1.0.x/ http //www.ibm.com/developerworks/jp/views/java/libraryview.jsp?search_by=Grails+%E3%82%92%E3%83%9E%E3%82%B9%E3%82%BF%E3%83%BC%E3%81%99%E3%82%8B S_TACT=105AGX90 S_CMP=content http //d.hatena.ne.jp/mottsnite/20130509/1368113688 modal dialog http //zenofchicken.wordpress.com/2010/12/27/a-taglib-to-create-modal-dialogs-with-jqueryui-and-grails/ http //grails.org/plugin/simple-modal simpleModal includes / simpleModal javascript / 本 http //pragprog.com/book/sdgrvr/groovy-recipes View Test Spock CodeNarc Calender Memo Domain constraints validator Custom name() motherName (validator {val, obj - if(val.size() 1 obj.name.size() 1) return [ validator.message ] }) Service Criteria Service @Transactional(readOnly = true) def searchCriteria(params) { def m_itemCriteria = M_item.createCriteria() List results = m_itemCriteria.list() { if(params?.name) { eq("name", params.name) } maxResults(10) order("name", "desc") } } Controller def find() { List results = m_itemService.searchCriteria(params) render(view list , model [m_itemInstanceList results, m_itemInstanceTotal results.size()]) } ※Sample def testCriteria = test.createCriteria() List results = testCriteria .list(max 10, offset 0) { eq("name", params.name) and { between("balance", 500, 1000) eq("branch", "London") } ilike("name","%${params.name}%") between("balance", 500, 1000) eq("branch", "London") or { like("holderFirstName", "Fred%") like("holderFirstName", "Barney%") } maxResults(10) firstResult(50) order("holderLastName", "desc") } //println "Accounts of ${results.totalCount}" //println "Rendering ${results.size()}" render(view list , model [testInstanceList results, testInstanceTotal results.size()]) Enum Enum package gapp enum GenderEnum { MALE( Male , msg.male.lavel ), FEMALE( Female , msg.female.lavel ), TRANCE( Trance , msg.trance.lavel ) private final String val private final String msg public GenderEnum(String val, String msg) { this.val = val this.msg = msg } String value() { return val } String msg() { return msg } } Domain GenderEnum gender static mapping = { version false } View g select name="action" from="${com.domain.ActionEnum?.values()}" keys="${com.domain.ActionEnum.values()*.name()}" required="" value="${xyzInstance?.action?.name()}"/ g select optionKey= id name="action" from="${com.domain.ActionEnum?.values()}" required="" value="${xyzInstance?.action}"/ Domain //複合PK static mapping = { id composite [ holdYear , member ] } // String toString(){ return name } //db mapping static mapping = { table some_other_table_name columns { name column airline_name url column link frequentFlyer column ff_id } } テーブルに格納されないドメイン・クラスのフィールドを設定するには、静的 transients 行を追加 static transients = ["tempField1", "tempField2"] Car car static embedded = { car } static mapping = { songs cascade delete discriminator xxxxx discriminator value 42 , type integer tablePerHierarchy false } コンボ・ボックス主キー表示時の漏えい回避 String toString(){ return name } //id to String String id static mapping = { table "m_item" id column jan_code , generator assigned } M_item m_item static mapping = { m_item column jan_code } Pagenateページ番号非表示化 style !-- .pagination .step, .pagination .currentStep { display none ; } -- /style java.util.List表示 controller def list() { List NewClass results2 = new ArrayList NewClass () NewClass m_item2 = new NewClass() m_item2.setName("java1") results2.add(m_item2) NewClass m_item3 = new NewClass() m_item3.setName("java2") results2.add(m_item3) render(view list m_itemInstanceList2 results2, m_itemInstanceTotal results.size()]) } gsp g each in="${m_itemInstanceList2}" status="j" var="m_itemInstance2" tr class="${(j % 2) == 0 ? even odd }" td ${j+1} /td %-- td c out value="${m_itemInstance2.name}"/ /td --% td ${m_itemInstance2.getName()} /td /tr /g each CloudFoundary 環境 Cloud Foundryプラグインのインストール grails install-plugin cloud-foundry grails-app/conf/Config.groovy修正 例) grails.plugin.cloudfoundry.usernameアカウント用のユーザ名/メールアドレスなし(必須) grails.plugin.cloudfoundry.passwordアカウント用のパスワードなし(必須) grails.plugin.cloudfoundry.targetAPIサーバ名 api.cloudfoundry.com grails.plugin.cloudfoundry.appnameアプリケーション名Grailsアプリケーションの名前 grails.plugin.cloudfoundry.showStackTraceコンソールにスタックトレースを表示するかどうかfalse grails.plugin.cloudfoundry.testStartWithGetGETリクエストで開始や再起動をテストするかどうかtrue grails.plugin.cloudfoundry.testStartGetUrl上記プロパティがtrueの場合に使用するURLアプリケーションのURL grails.plugin.cloudfoundry.datasource.disableTimeoutAutoconfigurationMySQLデータソースのコネクションタイムアウトチェックの自動設定を無効にするかどうかtrue grails.plugin.cloudfoundry.username= grails.plugin.cloudfoundry.password= grails.plugin.cloudfoundry.target= api.cloudfoundry.com grails.plugin.cloudfoundry.appname=gapp grails.plugin.cloudfoundry.showStackTrace=false grails.plugin.cloudfoundry.testStartWithGet=true grails.plugin.cloudfoundry.testStartGetUrl=gapp grails.plugin.cloudfoundry.datasource.disableTimeoutAutoconfiguration=true BuildConfig.groovy追記 mavenRepo "http //maven.springframework.org/milestone/" compile "cloudfoundry 1.2.3" grails refresh-dependencies grails dependencies-report w3m target/dependencies-report/index.html コマンド アプリのデプロイ grails prod cf-push アプリのアップデート grails prod cf-update インスタンス数変更 grails cf-show-instances grails cf-update-instances 2 メモリ割り当て変更 grails cf-stats grails cf-update-memory 1G ログの確認 grails cf-logs アプリケーションの起動・停止・再起動 grails prod cf-start grails prod cf-stop grails prod cf-restart リモートファイル確認 grails cf-list-files/ grails cf-get-file logs/stderr.log アプリケーションの削除 grails cf-delete-app 全アプリケーションの削除 grails cf-delete-all-apps データのインポート cf-tunnel
https://w.atwiki.jp/gcart/pages/22.html
gif_ 購入数に応じて割引(4パターン)を実現する nov_ 0.6からのインポートで、nov_size,nov_hakosizeをつくる option 実質自転車のみで、色違いを別商品にするほどのことでもない note 削除 sotck_show 見かけ上の在庫数 削除 非表示について status 0表示 1仮登録 2在庫切れ 3廃盤 検討 非表示の理由を保存しておきたい 在庫切れによる非表示だけピックアップしたい カテゴリと表示順位 検討 商品は複数のカテゴリに属したい カテゴリ商品一覧で任意の表示順にしたい 結論 カテゴリと商品の中間テーブルが必要 これに順位を入れることで実現する